package com.mixsmart.commonweb.log;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.mixsmart.commonweb.bean.entity.TCLoginLog;
import com.mixsmart.core.log.ILog;
import com.mixsmart.core.log.ILogBean;
import com.mixsmart.core.service.impl.MgrService;

/**
 * 日志实现类---记录登录日志
 * @author lmq
 * @version 1.0
 * @since JDK版本大于等于1.6
 * 2016年2月1日
 */
@Service("loginLog")
public class LoginLog extends MgrService<TCLoginLog, String> implements ILog {

	@Override
	@Transactional(propagation=Propagation.SUPPORTS)
	public boolean saveLog(ILogBean logBean) throws Exception {
		return super.saveObj(logBean);
	}

	@Override
	public String getLogName() {
		return "用户登录";
	}
	
}
